﻿namespace Models
{
    /// <summary>
    /// 在用绳档案
    /// </summary>
    public partial class UsingWireropeModel : BaseModel
    {
        public UsingWireropeModel()
        {
            CheckWireropeHistoryList = new List<CheckWireropeHistoryModel>();
            StockWireropeKeepModelList = new List<StockWireropeKeepModel>();
            CheckWireropeModelList = new List<CheckWireropeModel>();
            UsingWireropeKeepModelList = new List<UsingWireropeKeepModel>();
        }

        /// <summary>
        /// 监测状态信息，列表页用
        /// </summary>
        public CheckWireropeStatusMonitorModel CheckWireropeStatusMonitorModel { get; set; }

        /// <summary>
        /// 最后一次检测信息
        /// </summary>
        public CheckWireropeModel LastCheckWireropeModel { get; set; }

        /// <summary>
        /// 最后一次维保信息
        /// </summary>
        public UsingWireropeKeepModel LastUsingWireropeKeepModel { get; set; }

        /// <summary>
        /// 在用绳检测历史记录
        /// </summary>
        public List<CheckWireropeHistoryModel> CheckWireropeHistoryList { get; set; }

        /// <summary>
        /// 备绳维保
        /// </summary>
        public List<StockWireropeKeepModel> StockWireropeKeepModelList { get; set; }

        /// <summary>
        /// 入库信息
        /// </summary>
        public BillModel BillModel { get; set; }

        /// <summary>
        /// 在用绳检测
        /// </summary>
        public List<CheckWireropeModel> CheckWireropeModelList { get; set; }

        /// <summary>
        /// 在用绳维保
        /// </summary>
        public List<UsingWireropeKeepModel> UsingWireropeKeepModelList { get; set; }

        /// <summary>
        /// 安装信息
        /// </summary>
        public InstallModel InstallModel { get; set; }

        /// <summary>
        /// 作废信息
        /// </summary>
        public ZuoFeiModel ZuoFeiModel { get; set; }

        /// <summary>
        /// 提升机
        /// </summary>
        public HoisterModel HoisterModel { get; set; }


        public string Department_Name { get; set; }

        public int? KeepDay { get; set; }
        //public List<FileModel> ChuChang_FilesList { get; set; }
        //public List<FileModel> YanShou_FilesList { get; set; }
        //public List<FileModel> JianCe_FilesList { get; set; }
        //public List<FileModel> Attr_FilesList { get; set; }

        /// <summary>
        /// 是否有检测数据
        /// </summary>
        public bool HasCheck { get; set; }

        //几种状态的备注
        public string LaRemark { get; set; }
        public string DiaRemark { get; set; }
        public string LmaRemark { get; set; }
        public string NianJuRemark { get; set; }
    }

    #region 在用绳检测历史记录用
    public class CheckWireropeHistoryModel
    {
        public CheckWireropeHistoryModel()
        {
            X_Date = new List<DateTime>();
            Items = new List<CheckWireropeHistoryDataModel>();
        }

        public string TabName { get; set; }
        public List<DateTime> X_Date { get; set; }
        public List<CheckWireropeHistoryDataModel> Items { get; set; }
    }

    public class CheckWireropeHistoryDataModel
    {
        public CheckWireropeHistoryDataModel()
        {
            Num = new List<decimal>();
        }

        public string Name { get; set; }
        public List<decimal> Num { get; set; }
    }
    #endregion

    #region 首页用
    public class HomeSummaryModel
    {
        public HomeSummaryItemModel ZhongHe { get; set; }
        public HomeSummaryItemModel La { get; set; }
        public HomeSummaryItemModel Dia { get; set; }
        public HomeSummaryItemModel Lma { get; set; }
        public HomeSummaryItemModel NianJu { get; set; }
    }

    public class HomeSummaryItemModel
    {
        public int Green { get; set; }
        public int Blue { get; set; }
        public int Yellow { get; set; }
        public int Orange { get; set; }
        public int Grey { get; set; }
        public int AllCount { get; set; }
        public double GreenP { get; set; }
        public double BlueP { get; set; }
        public double YellowP { get; set; }
        public double OrangeP { get; set; }
        public double GreyP { get; set; }
    }
    #endregion

    public class InstallModel
    {
        public string CreateUserName { get; set; }
        public DateTime InstallTime { get; set; }
        public string Reason { get; set; }
        public string Remark { get; set; }
        public int Type { get; set; }
    }

    public class ZuoFeiModel
    {
        public int AutoID { get; set; }
        public string CreateUserName { get; set; }
        public DateTime ZuoFeiTime { get; set; }
        public string Reason { get; set; }
        public string Remark { get; set; }
    }
}
